package xzy.com.entity.domain;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

/**
 * 
* @Title: Notice
* @Description: 新闻公告实体类
* @author: liyang
* @date 2020年12月6日 下午4:34:37
 */
@TableName("tb_notice")
public class Notice {
	@TableId(value="id",type = IdType.AUTO)
	private Long id;
	private String author;// 作者
	private String title;// 标题
	private String content;// 内容
	@TableField(fill = FieldFill.INSERT)
	private Date createTime;//创建时间
	@TableField(fill = FieldFill.UPDATE)
	private Date updateTime;//修改时间
	private Long hittimes;// 点击量
	private int state;// 状态
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public String getAuthor() {
		return author;
	}
	public void setAuthor(String author) {
		this.author = author;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}
	public int getState() {
		return state;
	}
	public void setState(int state) {
		this.state = state;
	}
	
	public Long getHittimes() {
		return hittimes;
	}
	public void setHittimes(Long hittimes) {
		this.hittimes = hittimes;
	}
	@Override
	public String toString() {
		return "Notice [id=" + id + ", author=" + author + ", title=" + title + ", content=" + content + ", createTime="
				+ createTime + ", updateTime=" + updateTime + ", hittimes=" + hittimes + ", state=" + state + "]";
	}
	
	
}
